//
//  RefreshItem.swift
//  SwiftUIExample
//
//  Created by qingzhou on 2021/6/18.
//

import SwiftUI

@available(iOS 15.0, *)
struct RefreshItem: View {
    
    var item:NameModel?
    
    var body: some View {
        HStack {
            AsyncImageView()
            VStack(alignment: .leading) {
                Text((item?.name!)!)
                    .font(.headline)
                Text((item?.des!)!)
                    .foregroundColor(.secondary)
            }
        }
        
    }
}

@available(iOS 15.0, *)
struct RefreshItem_Previews: PreviewProvider {
    static var previews: some View {
        RefreshItem()
    }
}
